/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const memberRouter = {
	path: '/member',
	component: Layout,
	redirect: '',
	name: 'Membership',
	meta: {
		title: 'Membership',
		icon: 'peoples'
	},
	children: [{
			path: 'memberlist',
			component: () => import('@/views/member/memberlist'),
			name: 'member',
			meta: {
				title: 'member'
			}
		},
		{
			path: 'memberDetail',
			component: () => import('@/views/member/components/memberDetail'),
			name: 'memberDetail',
			hidden: true,
			meta: {
				title: 'memberDetail',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'memberOfFamilyDetail',
			component: () => import('@/views/member/components/memberOfFamilyDetail'),
			name: 'memberOfFamilyDetail',
			hidden: true,
			meta: {
				title: 'memberOfFamilyDetail',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'pointsDetail',
			component: () => import('@/views/member/components/pointsDetail'),
			name: 'pointsDetail',
			hidden: true,
			meta: {
				title: 'pointsDetail',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'memberAddCard',
			component: () => import('@/views/member/components/memberAddCard'),
			name: 'memberAddCard',
			hidden: true,
			meta: {
				title: 'memberAddCard',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'importMember',
			component: () => import('@/views/member/components/importMember'),
			name: 'importMember',
			hidden: true,
			meta: {
				title: 'importMember',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'importMemberCard',
			component: () => import('@/views/member/components/importMemberCard'),
			name: 'importMemberCard',
			hidden: true,
			meta: {
				title: 'importMemberCard',
				activeMenu: '/member/membercardlist'
			}
		},
		{
			path: 'memberExport',
			component: () => import('@/views/member/components/memberExport'),
			name: 'memberExport',
			hidden: true,
			meta: {
				title: 'memberExport',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'batchMember',
			component: () => import('@/views/member/components/batchMember'),
			name: 'batchMember',
			hidden: true,
			meta: {
				title: 'batchMember',
				activeMenu: '/member/memberlist'
			}
		},

		{
			path: 'exportVisitLogs',
			component: () => import('@/views/member/components/exportVisitLogs'),
			name: 'exportVisitLogs',
			hidden: true,
			meta: {
				title: 'exportVisitLogs',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'membercard',
			component: () => import('@/views/member/membercardlist'),
			name: 'MemberCard',
			meta: {
				title: 'MemberCard'
			}
		},
		// {
		// 	path: 'memberGuest',
		// 	component: () => import('@/views/member/memberGuest'),
		// 	name: 'memberGuest',
		// 	meta: {
		// 		title: 'memberGuest'
		// 	}
		// },
		{
			path: 'memberGuestAdd',
			component: () => import('@/views/member/components/memberGuestAdd'),
			name: 'memberGuestAdd',
			hidden: true,
			meta: {
				title: 'memberGuestAdd',
				activeMenu: '/member/memberGuest'
			}
		},
		{
			path: 'importGuest',
			component: () => import('@/views/member/components/importGuest'),
			name: 'importGuest',
			hidden: true,
			meta: {
				title: 'importGuest',
				activeMenu: '/member/memberGuest'
			}
		},
		{
			path: 'guestExport',
			component: () => import('@/views/member/components/guestExport'),
			name: 'guestExport',
			hidden: true,
			meta: {
				title: 'guestExport',
				activeMenu: '/member/memberGuest'
			}
		},

		{
			path: 'referrer',
			component: () => import('@/views/member/referrer'),
			name: 'referrer',
			hidden: true,
			meta: {
				title: 'referrer',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'mCardExport',
			component: () => import('@/views/member/components/mCardExport'),
			name: 'mCardExport',
			hidden: true,
			meta: {
				title: 'mCardExport',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'familys',
			component: () => import('@/views/member/familys'),
			name: 'familys',
			hidden: true,
			meta: {
				title: 'familys',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'editmember',
			component: () => import('@/views/member/components/editmember'),
			name: 'editmember',
			hidden: true,
			meta: {
				title: 'editmember',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'memberOfFamilyUpdate',
			component: () => import('@/views/member/components/memberOfFamilyUpdate'),
			name: 'memberOfFamilyUpdate',
			hidden: true,
			meta: {
				title: 'memberOfFamilyUpdate',
				activeMenu: '/member/memberlist'
			}
		},
		{
			path: 'membercardname',
			component: () => import('@/views/member/membercardname'),
			name: 'membercardname',
			hidden: false,
			meta: {
				title: 'membercardname'
			}
		},
		{
			path: 'editmembercardname',
			component: () => import('@/views/member/components/editmembercardname'),
			name: 'editmembercardname',
			hidden: true,
			meta: {
				title: 'editmembercardname',
				activeMenu: '/member/membercardname'
			}
		},
		{
			path: 'memberaddnewcard',
			component: () => import('@/views/member/components/memberaddnewcard'),
			name: 'memberaddnewcard',
			hidden: true,
			meta: {
				title: 'memberaddnewcard',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'batchMCard',
			component: () => import('@/views/member/components/batchMCard'),
			name: 'batchMCard',
			hidden: true,
			meta: {
				title: 'batchMCard',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'memberCardsExpireUpdate',
			component: () => import('@/views/member/components/memberCardsExpireUpdate'),
			name: 'memberCardsExpireUpdate',
			hidden: true,
			meta: {
				title: 'memberCardsExpireUpdate',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'membercarddetail',
			component: () => import('@/views/member/components/membercarddetail'),
			name: 'membercarddetail',
			hidden: true,
			meta: {
				title: 'membercarddetail',
				activeMenu: '/member/membercard'
			}
		},
		{
			path: 'editMemberCard',
			component: () => import('@/views/member/components/editMemberCard'),
			name: 'editMemberCard',
			hidden: true,
			meta: {
				title: 'editMemberCard',
				activeMenu: '/member/membercard'
			}
		}
	]
}
export default memberRouter
